package com.flushbonading.annotation;

import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author zyx 2134208960@qq.com
 * @version 0.1.0
 * @create 2021-03-12 17:59
 * @since 0.1.0
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)	//在运行时生效
@Target({ElementType.FIELD,ElementType.PARAMETER})	//作用在字段或参数上
public @interface StudentNumber {
    String[] value() default "";
    String message() default "必须填写正确的学号";
    Class<? extends Payload>[] payload() default {};
}
